package com.zs.demo;

import com.zs.spring.BeanPostProccesser;
import com.zs.spring.Component;

@Component
public class ZcBeanPostProccesser implements BeanPostProccesser {
    @Override
    public Object postProcessBeforeInitialization(Object bean, String beanName) {
        System.out.println("初始化前:" + beanName);
        return bean;
    }

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) {
        System.out.println("初始化后:"+ beanName);
        return bean;
    }
}
